<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Show RSS feeds in your site
 * 
 * @package 	PyroCMS\Core\Modules\Blog\Widgets
 * @author		Phil Sturgeon
 * @author		PyroCMS Development Team
 */
class Widget_Archive extends Widgets
{

        public $title = array(
            'en'         => 'Archive',
            'br'         => 'Arquivo do Blog',
            'pt'         => 'Arquivo do Blog',
            'el'         => 'Αρχείο Ιστολογίου',
            'fr'         => 'Archives du Blog',
            'ru'         => 'Архив',
            'id'         => 'Archive',
        );
        public $description = array(
            'en'     => 'Display a list of old months with links to posts in those months',
            'br'     => 'Mostra uma lista navegação cronológica contendo o índice dos artigos publicados mensalmente',
            'pt'     => 'Mostra uma lista navegação cronológica contendo o índice dos artigos publicados mensalmente',
            'el'     => 'Προβάλλει μια λίστα μηνών και συνδέσμους σε αναρτήσεις που έγιναν σε κάθε από αυτούς',
            'fr'     => 'Permet d\'afficher une liste des mois passés avec des liens vers les posts relatifs à ces mois',
            'ru'     => 'Выводит список по месяцам со ссылками на записи в этих месяцах',
            'id'     => 'Menampilkan daftar bulan beserta tautan post di setiap bulannya',
        );
        public $author  = 'Phil Sturgeon';
        public $website = 'http://philsturgeon.co.uk/';
        public $version = '1.0';

        public function run($options)
        {
                $this->load->model('blog/blog_m');
                $this->lang->load('blog/blog');

                return array(
                    'archive_months' => $this->blog_m->get_archive_months()
                );
        }

}
